package com.vinci.webtrading.service.impl;

import java.util.List;
import com.vinci.webtrading.dao.IClientDao;
import com.vinci.webtrading.dao.entity.Client;
import com.vinci.webtrading.dao.impl.ClientDaoImpl;
import com.vinci.webtrading.service.IClientService;

public class ClientServiceImpl implements IClientService {
	private IClientDao clientDao = new ClientDaoImpl();

	public void addClient(Client client) {
		clientDao.addClient(client);
	}

	public void updateClient(Client client) {
		clientDao.updateClient(client);
	}

	public void deleteClient(Integer id) {
		clientDao.deleteClient(id);
	}

	public Client getClientById(Integer id) {
		return clientDao.getClientById(id);
	}

	public List<Client> getClientByKeyword(String keyword) {
		return clientDao.getClientByKeyword(keyword);
	}

	public List<Client> getAllClient() {
		return clientDao.getAllClient();
	}

}
